package com.itheima.mp.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "用户表单实体")
public class UserFormDTO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("注册手机号")
    private String phone;

    @ApiModelProperty("详细信息，JSON风格")
    private String info;

    @ApiModelProperty("账户余额")
    private Integer balance;

    public UserFormDTO(Long id, String username, String password, String phone, String info, Integer balance) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.info = info;
        this.balance = balance;
    }

    public UserFormDTO() {
    }
}
